package com.knowif.enumInfo;

import java.util.HashMap;
import java.util.Map;

public enum EducationTypeEnum {
    BENKE(1,"本科"),
    SHUOSHI(2,"硕士"),
    BOSHI(3,"博士"),
    BOSHILIANDU(4,"博士连读"),
    BOSHIHOU(5,"博士后");
    private int typeId;
    private String typeName;
    private EducationTypeEnum(int typeId, String typeName) {
        this.typeId = typeId;
        this.typeName = typeName;
    }
    public int getTypeId() {
        return typeId;
    }
    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }
    public String getTypeName() {
        return typeName;
    }
    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
    public static Map<Integer,String> getEducationTypes(){
        Map<Integer,String> educationType = new HashMap<Integer,String>();
        for(EducationTypeEnum educationTypeEnum : EducationTypeEnum.values()){
            educationType.put(educationTypeEnum.getTypeId(), educationTypeEnum.getTypeName());
        }
        return educationType;
    }
}
